cmake_minimum_required ( VERSION 3.0 )
if (POLICY CMP0054)
  cmake_policy(SET CMP0054 NEW)
endif(POLICY CMP0054)

# Only enable release and debug builds
message("${CMAKE_CONFIGURATION_TYPES}")
IF(CMAKE_CONFIGURATION_TYPES)
  SET(CMAKE_CONFIGURATION_TYPES Release Debug)
  SET(CMAKE_CONFIGURATION_TYPES "${CMAKE_CONFIGURATION_TYPES}" CACHE STRING
    "Reset the configurations to what we need"
    FORCE)
ENDIF()

project ( rootapp )


find_path(MINGW_BIN_PATH f2cpsp.exe)
set(MINGW_ROOT "${MINGW_BIN_PATH}/../" CACHE PATH "Mingw root path")
message(${MINGW_BIN_PATH})
message(${MINGW_ROOT})

# mark_as_advanced(MINGW_BIN_PATH MINGW_ROOT )

message("CMAKE_SIZEOF_VOID_P: ${CMAKE_SIZEOF_VOID_P}")
message("${MSVC_VERSION}")

